package com.ssy.lingxi.order.api.model.vo.request;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 加工能力 - 更新订单商品加工数量
 * @author 万宁
 * @version 2.0.0
 * @date 2021-09-06
 */
public class OrderUpdateEnhanceFeignVO implements Serializable {
    private static final long serialVersionUID = 3357403915764271651L;

    /**
     * （由订单服务生成的）订单商品Id
     */
    @NotNull(message = "订单商品Id要大于0")
    @Positive(message = "订单商品Id要大于0")
    private Long orderProductId;

    /**
     * 订单商品加工数量
     */
    @NotNull(message = "订单商品加工数量不能为空")
    private BigDecimal enhanceCount;

    public Long getOrderProductId() {
        return orderProductId;
    }

    public void setOrderProductId(Long orderProductId) {
        this.orderProductId = orderProductId;
    }

    public BigDecimal getEnhanceCount() {
        return enhanceCount;
    }

    public void setEnhanceCount(BigDecimal enhanceCount) {
        this.enhanceCount = enhanceCount;
    }
}
